<?php
$v_list_parent_id =  "";
if(isset($_REQUEST['hdn_list_parent_id'])){
	$v_list_parent_id  = $_REQUEST['hdn_list_parent_id'];
}
$v_current_position =  "";
if(isset($_REQUEST['hdn_current_position'])){
	$v_current_position  = $_REQUEST['hdn_current_position'];
}
$cmd = @mssql_init("USER_FunctionDelete",$conn); 
$v_list_item_id = $_REQUEST['hdn_list_item_id'];
@mssql_bind($cmd, "@p_list_item_id", $v_list_item_id, SQLVARCHAR);
$result = @mssql_execute($cmd); 
$rs = @mssql_fetch_array($result);
$v_error_name = _replace_bad_char(trim($rs['RET_ERROR_NAME']));
@mssql_next_result($result);
$rs_id = @mssql_fetch_array($result);
$v_error_id = _replace_bad_char(trim($rs_id['RET_ERROR_ID']));
@mssql_free_result($result);
if (!is_null($v_error_name) and $v_error_name <> ""){?>
	<script>
		alert("Khong the xoa chuc nang <?php echo $v_error_name; ?>");
	</script><?php
}
//$v_current_position = '1_'.$v_modul_id;
?>
<form action="index.php"  Name="f_back" method="post">
	<input type="hidden" name="fuseaction" value="DISPLAY_ALL_FUNCTION">
	<input name="hdn_current_position" type="hidden" value="<?php echo $v_current_position;?>">
	<input name="hdn_list_parent_id" type="hidden" value="<?php echo $v_list_parent_id;?>">								
	<input type="hidden" name="hdn_list_item_id" value="<?php echo $v_error_id;?>">
</form>
<Script language="javascript">	
	document.forms(0).submit();
</Script>
